package com.xuecheng.content.controller;

import com.xuecheng.api.content.model.dto.TeachplanMediaDTO;
import com.xuecheng.api.teaching.model.dto.TeachplanWorkDTO;
import com.xuecheng.common.domain.response.RestResponse;
import com.xuecheng.content.service.TeachplanWorkService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author itcast
 */
@Slf4j
@RestController
public class TeachplanWorkController {

    @Autowired
    private TeachplanWorkService  teachplanWorkService;

    @GetMapping("l/teachplan/work/{workId}")
    public RestResponse<List<TeachplanWorkDTO>> getByWorkId4s(@PathVariable Long workId) {
        return teachplanWorkService.getByWorkId4s(workId);
    }

}
